# coding: utf-8
from datetime import datetime


class Timestamp:
    """
    时间戳工具类
    """

    @classmethod
    def now(cls) -> int:
        """
        获取当前时间戳, 单位为秒, 9位整数
        :return:
        """
        return int(datetime.now().timestamp())

    @classmethod
    def now_ms(cls) -> int:
        """
        获取当前时间戳, 单位为毫秒, 13位整数
        :return:
        """
        return cls.now() * 1000
